package com.jack.a2021_09_29day04;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.jack.a2021_09_29day04.bean.Person;
import com.jack.a2021_09_29day04.di_interface.DiInterface;

import javax.inject.Inject;

import dagger.hilt.android.AndroidEntryPoint;

@AndroidEntryPoint
public class MainActivity extends AppCompatActivity {

    @Inject
    Person mPerson;

    @Inject
    DiInterface mDiInterface;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        System.out.println("mPerson " + (mPerson == null));

        mDiInterface.method();


    }
}